//点击回到顶部
window.onscroll = function() {
    scrollFunction()
};
function scrollFunction() {
    if (document.body.scrollTop > 450 || document.documentElement.scrollTop > 450) {
        document.getElementById("btnTop").style.display = "block";
    } else {
        document.getElementById("btnTop").style.display = "none";
    }
}
// 点击按钮，返回顶部
document.getElementById("btnTop").onclick = function(){
	returnTop();
}
function returnTop() {
    document.body.scrollTop = 0;
    document.documentElement.scrollTop = 0;
}
var commonA = document.getElementById("commonA");
var commonB = document.getElementById("commonB");
var commonC = document.getElementById("commonC");
var textBack = document.getElementById("textBack");
commonA.onclick = function(){
	commonA.style.display = 'none';
	commonB.style.display = 'block';
	commonC.style.display = 'block';
	textBack.style.display = 'block';
};
commonC.onclick = function(){
	commonA.style.display = 'inline-block';
	commonB.style.display = 'none';
	commonC.style.display = 'none';
	textBack.style.display = 'none';
};
var date = new Date();
var year = date.getFullYear();
var month = date.getMonth()+1;
var day = date.getDate();
console.log(year);
console.log("0"+month);
console.log(day);
document.getElementById("y").innerHTML = year;
if(month<10){
	month = "0"+month;
}
document.getElementById("m").innerHTML = month;
if(day<10){
	day = "0"+day;
}
document.getElementById("d").innerHTML = day;